package com.example.mac.yuejian14.service;

import java.util.List;

import com.example.mac.yuejian14.bean.ActivityBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/25.
 */

public interface ActivityService {
    //获取活动列表接口
    @GET("Activity/getActivityList")
    Call<List<ActivityBean>> getActivityList();

    @GET("Activity/getActivityById")
    Call<ActivityBean>getActivityById(@Query("actid") String actid);

    @GET("Activity/getActivityBySearch")
    Call<List<ActivityBean>> getActivityBySearch(@Query("keyword") String actName);

    @GET("Activity/addActivity")
    Call<ActivityBean> addActivity(@Query("uid") int uid,
                                   @Query("actid") int actid);

}
